blob: 09ce13e70164f0db8681f936bf7d7867aef15992 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { BiddingNoticeTemplateManager } from '@/lib/bidding/bidding-notice-template-manager'
import { getBiddingNoticeTemplates } from '@/lib/bidding/service'
// template 받을 때, 비동기 함수 호출 후 await 하므로 static-pre-render 과정에서 dynamic-server-error 발생.
// 따라서, dynamic 속성을 force-dynamic 으로 설정하여 동적 렌더링 처리
export const dynamic = 'force-dynamic'
export default async function BiddingNoticePage() {
const templates = await getBiddingNoticeTemplates()
return (
<div className="container mx-auto py-6 max-w-6xl">
<div className="mb-6">
<h1 className="text-3xl font-bold tracking-tight">입찰공고문 템플릿 관리</h1>
<p className="text-muted-foreground mt-2">
입찰공고문 템플릿을 타입별로 작성하고 관리할 수 있습니다.
각 타입별 템플릿은 입찰 생성 시 기본 양식으로 사용됩니다.
</p>
</div>
<BiddingNoticeTemplateManager initialTemplates={templates} />
</div>
)
}
|